package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.otherbean.YanshouDetails;
import com.tansuo365.test1.mapper.othermapper.YanshouDetailsMapper;
import com.tansuo365.test1.service.otherservice.YanshouDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class YanshouDetailsServiceImpl implements YanshouDetailsService {

    @Resource
    private YanshouDetailsMapper yanshouDetailsMapper;

    @Override
    public List<YanshouDetails> listYanshouDetailsByZongId(Integer zongzhangid) {
        return yanshouDetailsMapper.listYanshouDetailsByZongId(zongzhangid);
    }

    @Override
    public List<YanshouDetails> listYanshouDetailsSelective(YanshouDetails yanshouDetails) {
        return yanshouDetailsMapper.listYanshouDetailsSelective(yanshouDetails);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return yanshouDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteByZongId(Integer zongzhangid) {
        return yanshouDetailsMapper.deleteByZongId(zongzhangid);
    }

    @Override
    public int deleteByZongIdArr(Integer[] ids) {
        return yanshouDetailsMapper.deleteByZongIdArr(ids);
    }

    @Override
    public int insertSelective(YanshouDetails yanshouDetails) {
        return yanshouDetailsMapper.insertSelective(yanshouDetails);
    }

    @Override
    public YanshouDetails selectByPrimaryKey(String id) {
        return yanshouDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(YanshouDetails yanshouDetails) {
        return yanshouDetailsMapper.updateByPrimaryKeySelective(yanshouDetails);
    }
}
